Skip to content

fix: gather and scatter on empty arrays#668

Merged
CarloLucibello merged 4 commits intoFluxML:masterfrom
lenianiva:gather
Jan 13, 2026
Merged

fix: gather and scatter on empty arrays#668
CarloLucibello merged 4 commits intoFluxML:masterfrom
lenianiva:gather

Conversation

@lenianiva
Copy link
Contributor

@lenianiva lenianiva commented Jan 12, 2026

PR Checklist

  • Tests are added
  • Documentation, if applicable

Resolves #411 for both cases (empty src or empty idx)

Compared to the previous iteration #413, this one only gates the result on GPU.

@lenianiva lenianiva changed the title fix: Zero case in gather fix: gather and scatter by empty arrays Jan 12, 2026
@lenianiva lenianiva changed the title fix: gather and scatter by empty arrays fix: gather and scatter on empty arrays Jan 12, 2026
@CarloLucibello CarloLucibello merged commit bfb9a4b into FluxML:master Jan 13, 2026
10 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gather is not friendly with matrix of size 0 on GPU

2 participants